//
// Created by jinbang.li on 2023/7/23.
//

#ifndef OPENPLAYDEMO_IOPAUDIOPLAY_H
#define OPENPLAYDEMO_IOPAUDIOPLAY_H
#include <list>
#include "../Observer/IOpObserver.h"
#include "../Data/OpParameter.h"
class IOpAudioPlay: public IOpObserver{
public:
    virtual void update(OpData data);
    virtual bool startPlay(OpParameter out) = 0;
    int maxFrame = 100;
    virtual OpData GetData();
protected:
    std::list <OpData>frames;
    std::mutex framesMutex;
};


#endif //OPENPLAYDEMO_IOPAUDIOPLAY_H
